using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace QlyshopCD
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            AcessData con = new AcessData();
            con.Open();
            String SQL = "select * from DM_ShopCD where MaDM='" + this.textBox1.Text + "'";
            DataTable tb = con.Get_DataTable(SQL);
            CrystalReport1 rp = new CrystalReport1();
            rp.SetDataSource(tb);
            this.crystalReportViewer1.ReportSource = rp;
            this.crystalReportViewer1.Refresh();
            con.Close();
        }
    }
}